/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.webproject.member.model;

import com.webproject.jsp.common.model.BaseModel;

/**
 *
 * @author jeong
 */
public class Users extends BaseModel {
    
    private String userId;
    private String userPassword;
    private String userName;
    private String userSex;
    private String email;
    private String address;
    private String telno;
    private String cellno;
    private String avatar;

    public String getAddress() {
        return address;
    }

    public String getAvatar() {
        return avatar;
    }

    public String getCellno() {
        return cellno;
    }

    public String getEmail() {
        return email;
    }

    public String getTelno() {
        return telno;
    }

    public String getUserId() {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setCellno(String cellno) {
        this.cellno = cellno;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setTelno(String telno) {
        this.telno = telno;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    @Override
    public String toString() {
        return "Users{" + "userId=" + userId + ", userPassword=" + userPassword + ", userName=" + userName + ", userSex=" + userSex + ", email=" + email + ", address=" + address + ", telno=" + telno + ", cellno=" + cellno + ", avatar=" + avatar + '}';
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Users other = (Users) obj;
        if ((this.userId == null) ? (other.userId != null) : !this.userId.equals(other.userId)) {
            return false;
        }
        if ((this.userPassword == null) ? (other.userPassword != null) : !this.userPassword.equals(other.userPassword)) {
            return false;
        }
        if ((this.userName == null) ? (other.userName != null) : !this.userName.equals(other.userName)) {
            return false;
        }
        if ((this.userSex == null) ? (other.userSex != null) : !this.userSex.equals(other.userSex)) {
            return false;
        }
        if ((this.email == null) ? (other.email != null) : !this.email.equals(other.email)) {
            return false;
        }
        if ((this.address == null) ? (other.address != null) : !this.address.equals(other.address)) {
            return false;
        }
        if ((this.telno == null) ? (other.telno != null) : !this.telno.equals(other.telno)) {
            return false;
        }
        if ((this.cellno == null) ? (other.cellno != null) : !this.cellno.equals(other.cellno)) {
            return false;
        }
        if ((this.avatar == null) ? (other.avatar != null) : !this.avatar.equals(other.avatar)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 79 * hash + (this.userId != null ? this.userId.hashCode() : 0);
        hash = 79 * hash + (this.userPassword != null ? this.userPassword.hashCode() : 0);
        hash = 79 * hash + (this.userName != null ? this.userName.hashCode() : 0);
        hash = 79 * hash + (this.userSex != null ? this.userSex.hashCode() : 0);
        hash = 79 * hash + (this.email != null ? this.email.hashCode() : 0);
        hash = 79 * hash + (this.address != null ? this.address.hashCode() : 0);
        hash = 79 * hash + (this.telno != null ? this.telno.hashCode() : 0);
        hash = 79 * hash + (this.cellno != null ? this.cellno.hashCode() : 0);
        hash = 79 * hash + (this.avatar != null ? this.avatar.hashCode() : 0);
        return hash;
    }
    
    
    
}
